<?php
	defined('_JEXEC') or die(); 
	JHTML::_('behavior.tooltip'); 
	$listOrder	= @$this->lists['order'];
	$listDirn	= @$this->lists['order_Dir'];
?>
<style>
	#tbl_filter{
		margin: 0 ; padding: 0 ;
	}
	#tbl_filter input, #tbl_filter img {
	    float: left;
	    margin: 5px 5px 5px 0;
	    width: auto;
	}
}
</style>
<script language="javascript" type="text/javascript">
	function submitform(pressbutton){
		var form = document.adminForm ;
	   	if (pressbutton)
	    {
	   		form.task.value=pressbutton ;
	   	}
		if ((pressbutton=='send_redemp_notice_email')||(pressbutton=='send_redemp_pick_up_notice')){
		  	form.controller.value="reports" ;
		}
		form.submit();
	}
</script>
<div class="col width-100">	
	<form id="adminForm" action="<?php echo JRoute::_("index.php?option=com_wrd")?>" method="post" name="adminForm" >
		<div id="editcell">
			<?php 
				echo $this->loadtemplate('form') ;
				echo $this->loadtemplate('result') ;
			?>
		</div>
		<input type="hidden" name="controller" value="reports" />
		<input type="hidden" name="option" value="com_wrd" />
		<!-- <input type="hidden" name="task" value="greports" /> -->
		<input type="hidden" name="task" value="greports" />
		<input type="hidden" name="boxchecked" value="0" />
	    <input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
	    <input type="hidden" name="filter_order_Dir" value=" <?php echo $this->lists['order_Dir']; ?> " />
		<?php echo JHTML::_( 'form.token' ); ?>
	</form>
</div>